All Questions
3 questions
4votes
3answers
1kviews
Thread-safe "singleton" that destroys object when not used anymore
I'm working on some legacy code which uses the singleton pattern. The problem I have with the traditional singleton is that the instance lives until the program terminates. This is messing up the ...
1vote
1answer
523views
QuickSort - 3 pivot choosing methods via factory
I'm happy to hear thoughts and ideas on structure/performance/testing/whatever and multi-threading, which I haven't gotten into yet with Python. Latest code here. Assignment file and a few test files ...
8votes
1answer
196views
Producer consumer that simulates the interaction of threads controlling a hardware device
I have a producer consumer that simulates the interaction of threads controlling a hardware device. I have 1 thread controlling the device, 1 thread reading, and 1 thread outputting. The read is ...